package com.hq.ims.data.utils;

import com.hq.utils.vo.ReturnVo;
import lombok.Data;

/**
 * 扩展自返回对象
 * <p>
 * jbp
 */
@Data
public class ReturnExtendVo<T, TT> {

    private Boolean isSuccess = false;
    private Integer code = 0;
    private String msg;
    private Object data;
    private T extendObj;

    public ReturnExtendVo() {

    }

    public void setReturnVo(ReturnVo vo) {
        this.setIsSuccess(vo.getIsSuccess());
        this.setCode(vo.getCode());
        this.setMsg(vo.getMsg());
        this.setData(vo.getData());
    }

}
